PrismaのNative types mapping
from
Prisma schemaのData Model
PrismaのNative types mapping
https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#native-types-mapping
https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#model-field-scalar-types
MySQLの型
のようなものと対応する
String型
https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#mysql
table:MySQLとの対応
VARCHAR @db.VarChar(X)
TEXT @db.Text
CHAR @db.Char(X)
TINYTEXT @db.TinyText
MEDIUMTEXT @db.MediumText
LONGTEXT @db.LongText
Int
https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#mysql-2
table:対応
INT @db. Int
INT UNSIGNED @db. UnsignedInt
YEAR @db. Year